/**
 * 
 */
package org.t2.game.server.module.marquee;

import org.gaming.fakecmd.annotation.PlayerCmd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.t2.game.server.foundation.player.PlayerContext;
import org.t2.game.server.module.marquee.service.MarqueeService;

import pb.t2.protobuf.marquee.Marquee.MarqueeDrawRequest;

/**
 * @author YY
 */
@Controller
public class MarqueeHandler {

	@Autowired
	private MarqueeService marqueeService;
	
	@PlayerCmd
	public void draw(PlayerContext playerContext, MarqueeDrawRequest request) {
		marqueeService.push(2, playerContext.getId(), request.getItemId(), request.getNum());
	}
}
